package co.baiku.boot.component.shop.po;

import co.baiku.boot.common.validate.annotation.CheckField;
import co.baiku.boot.core.orm.po.Po;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 商品
 */
public class GoodsPo extends Po<Long> {
    /**
     * 商品名称
     */
    @CheckField(notEmpty = true, message = "商品名称不能为空")
    @ApiModelProperty(value = "商品名称", required = true)
    private String name;
    /**
     * 价格(元)
     */
    @CheckField(notNull = true, message = "商品价格不能为空")
    @ApiModelProperty(value = "商品价格(元)", required = true)
    private BigDecimal price;
    /**
     * 商品分类ID
     */
    @CheckField(notNull = true, message = "商品分类不能为空")
    @ApiModelProperty(value = "商品分类", required = true)
    private Long goodsCategoryId;
    /**
     * 商品状态(0下架,1上架,2售罄)
     */
    @CheckField(notNull = true, message = "商品状态")
    @ApiModelProperty(value = "商品状态(0下架,1上架,2售罄)", required = true)
    private Integer status;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Long getGoodsCategoryId() {
        return goodsCategoryId;
    }

    public void setGoodsCategoryId(Long goodsCategoryId) {
        this.goodsCategoryId = goodsCategoryId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
